package com.xinqi.modules.sys.role.dto.req;

import com.xinqi.common.green.annotation.Text;
import com.xinqi.modules.sys.role.dto.RoleExtendDTO;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;

/**
 * 系统角色-请求对象-新增
 *
 * @author: linkai
 * @date: 2023/04/01
 */
@Data
@Schema(description = "系统角色-请求对象-新增")
public class RoleCreateDTO implements Serializable {

    /**
     * 所属平台
     */
    @Schema(description = "所属平台", example = "")
    private Long platformId;
    /**
     * 平台名称
     */
    @Text
    @Schema(description = "平台名称", example = "")
    private String name;
    /**
     * 权限编码
     */
    @Schema(description = "权限编码", example = "")
    private String permission;
    /**
     * 状态，0-禁用；1-启动
     */
    @Schema(description = "状态，0-禁用；1-启动", example = "")
    private String status;
    /**
     * 排序
     */
    @Schema(description = "排序", example = "")
    private Integer sort;
    /**
     * 备注
     */
    @Text
    @Schema(description = "备注", example = "")
    private String remark;

    /**
     * 扩展字段
     */
    @Schema(description = "扩展", example = "")
    private RoleExtendDTO extend;
}
